package com.todo.biz.application.remote;

import com.todo.common.common.entity.response.BizResponse;
import com.todo.partner.service.api.response.PartnerDetailResponse;
import com.todo.partner.service.api.response.PartnerInfoResponse;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author azhebuxing
 * @date 2025/2/25 23:55
 * @description
 */
@FeignClient(name = "todoPartnerService", url = "http://localhost:1818201")
public interface PartnerContentRemoteService {


    @Operation(summary = "根据id查询搭子内容详情")
    @PostMapping("/api/partnerContent/queryPartnerDetailById")
    BizResponse<PartnerDetailResponse> queryPartnerDetailById(@RequestBody Long partnerId);


    @Operation(summary = "根据id列表查询搭子内容信息列表")
    @PostMapping("/api/partnerContent/queryPartnerInfoByIdList")
    BizResponse<List<PartnerInfoResponse>> queryPartnerInfoByIdList(@RequestBody List<Long> partnerIdList);
}
